<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- CSRF Token -->
    <meta name="csrf-token" id="csrf-token" content="{{ csrf_token() }}">
    <title>{{ config('app.name', 'Laravel') }}</title>
    <link rel="stylesheet" href="{{ asset('static/layui/css/layui.css') }}">
    <link rel="stylesheet" href="{{ asset('static/admin/css/base.css') }}">
    <link rel="stylesheet" href="{{ asset('static/admin/css/fonts.css') }}">

</head>

<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-green">
        <div class="layui-logo">后台管理系统</div>
        <ul class="layui-nav layui-layout-left">

        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="/" target="_blank"><i class="fa fa-home"></i> 网站首页</a>
            </li>
            <li class="layui-nav-item">
                <a href="/admin/index/clear.html" class="ajax-action"><i class="fa fa-trash"></i> 清除缓存</a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;"><i class="fa fa-user"></i> {{auth()->user()->username}}</a>
                <dl class="layui-nav-child">
                    <dd>
                        <a href="/admin/index/editpassword.html">修改密码</a>
                    </dd>
                    <dd>
                        <a href="{{route('admin.logout')}}">退出登录</a>
                    </dd>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            @include('admin.sidebar')
        </div>
    </div>
    <div class="layui-breadcrumb">
        <a><cite>控制台 / {{get_breadcrumb()}}</cite></a>

    </div>
    <div class="layui-body">
        @yield('content')

    </div>
</div>
<script src="{{ asset('static/layui/layui.js') }}"></script>




<script src="{{ asset('static/admin/js/cms.js') }}"></script>
<script>

    var manage_Image = "{{route('admin.images.manage')}}";
    var _token="{{ csrf_token() }}";
    console.log(manage_Image);
    layui.config({
        base: '/static/admin/js/extend/' //此处路径请自行处理, 可以使用绝对路径
    }).extend({
        strpy: "strpy",
        formSelects: 'formSelects-v4'
    });
    layui.use(['layer', 'form','element','laydate'], function(){
        var layer = layui.layer,
            form  = layui.form,
            laydate = layui.laydate,
            element = layui.element;

        laydate.render({
            elem: '.date' //指定元素
        });

    });
</script>
<script src="{{ asset('static/admin/ue/ueditor.config.js') }}"></script>
<script src="{{ asset('static/admin/ue/ueditor.all.min.js') }}"></script>
<script src="{{ asset('static/admin/ue/lang/zh-cn/zh-cn.js') }}"></script>


@yield('script')
</body>

</html>